package com.paradogs.gs.db;

import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.paradogs.gs.misc.BaseMgrMultiEntity;
import com.paradogs.gs.misc.annotations.CodeAutoGeneratorModule;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: yumi
 * @date: 2024/10/23  22:55
 * @Description: 材料，id = itemId
 */
@CodeAutoGeneratorModule("inventory")
@Data
@NoArgsConstructor
@ProtobufClass
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mgr_consumable", autoResultMap = true)
public class Consumable extends BaseMgrMultiEntity {

    @Column(comment = "道具数量")
    @TableField("count")
    private Integer count;

    public Consumable(Integer itemId, Integer count) {
        super(Long.valueOf(itemId));
        this.count = count;
    }
}
